<style>
.pane_block input.under_line_input{
	width:50px!important;
	min-width:50px;
	background:none;
	border:none;
	border-bottom:1px solid #666;
	border-radius:0;
	padding:1px 6px;
	font-size:14px;
	margin:0 3px;
	position:relative;
	text-align:center;
	bottom:4px;
}
</style>
<div class="pane_block" style="width:550px;">
	<div class="pane_block_title">催单设置</div>
	<div class="dialog_form">
	<table>
	<tr>
		<th width="100">催单功能</th>
		<td>
			<label class="checkbox">
				<input [(ngModel)]="shipConfig.underlineOrder.is_open" type="checkbox"/>
				<span class="checkbox_text">开启</span>
			</label>
		</td>
	</tr>
	<tr>
		<th valign="top">催单功能</th>
		<td>
			<div>下单<input class="under_line_input" [(ngModel)]="shipConfig.underlineOrder.after_time"/>分钟后方可催单</div>
			<br/>
			<div>间隔<input class="under_line_input" [(ngModel)]="shipConfig.underlineOrder.interval_time"/>分钟后方可催单</div>
		</td>
	</tr>
	<tr>
		<td align="right" colspan="2"><button (click)="saveUnderLine();">保存并使用</button></td>
	</tr>
	</table>
	</div>
</div>

<div class="pane_block" style="width:550px;">
	<div class="pane_block_title">起送费用</div>
	<div class="dialog_form">
	<table class="dialog_form">
		<tr>
			<th width="100">起送费用</th>
			<td><input [(ngModel)]="shipConfig.startingFare.cost" type="text" class="under_line_input" />元</td>
		</tr>
		<tr>
			<td align="right" colspan="2"><button (click)="saveStartingFare();">保存并使用</button></td>
		</tr>
	</table>
	</div>
</div>

<div class="pane_block" style="width:550px;">
	<div class="pane_block_title">配送费用</div>
	<div class="dialog_form">
	<table class="dialog_form">
		<tr>
			<th width="100" valign="top">配送费用</th>
			<td>
				<input [(ngModel)]="shipConfig.shipFee.cost" type="text" class="under_line_input" /><span>元</span><br /><br />
				<div>配送费设置为0时，代表无需收取配送费</div>
			</td>
		</tr>
		<tr>
			<th valign="top">收取条件</th>
			<td>
				<div>
					<label class="radio">
						<input [(ngModel)]="shipConfig.shipFee.all_order" value="1" name="condition" type="radio"/>
						<div class="radio_text">所有订单均收取配送费用</div>
					</label>
				</div>
				
				<div>
					<label class="radio">
						<input [(ngModel)]="shipConfig.shipFee.all_order" value="0" name="condition" type="radio"/>
						<div class="radio_text"></div>
					</label>
					<span style="position:relative;right:16px;">当订单金额满<input [(ngModel)]="shipConfig.shipFee.full_cost" type="text" class="under_line_input"/>,无需收取配送费</span>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" colspan="2"><button (click)="saveShipFee();">保存并使用</button></td>
		</tr>
	</table>
	</div>
</div>